<div class="notice"></div>
<% @groups.each do |group| %>
    <%= render "group_panel", group: group %>
    <!--<div class="panel panel-primary">
        <div class="panel-heading"><p class="text-center"><%= group.name %></p></div>
        <div class="panel-body">
            <span class="label label-primary">Description</span>

            <p></p>

            <div class="alert alert-info"><%= group.description %></div>

            <hr>

            <span class="label label-primary">Members</span>

            <p></p>

            <% group.users.each do |user| %>
                <%= link_to user.name, user_path(user), class: "btn btn-info" %>
                &lt;!&ndash;<button type="button" class="btn btn-info"><%= user.name %></button>&ndash;&gt;
            <% end %>
        </div>
        <div class="panel-footer">
            <div class="row">
                <div class="col-md-2 col-sm-2">
                    <%= form_tag(group_join_path, method: :post, remote: true) do %>
                        <%= hidden_field_tag "group_id", group.id %>
                        <span class="glyphicon glyphicon-plus-sign" aria-hidden="true"></span>
                        <%= submit_tag "Join", class: "btn btn-primary btn-xs" %>
                    <% end %>
                </div>
                <% if group.owner_id == current_user.id %>
                    <div class="col-md-2 col-sm-2 col-md-offset-8">
                        <% if !group.lock_tag %>
                            <%= link_to "Lock", lock_group_opt_path(group), class: "btn btn-primary btn-xs" %>
                        <% else %>
                            <%= link_to "Unlock", lock_group_opt_path(group), class: "btn btn-primary btn-xs" %>
                        <% end %>
                    </div>
                <% end %>
            </div>


        </div>
    </div>-->
<% end %>